
import * as netio from "net";

type Socket = netio.Socket;

let sock:Socket = netio.connect(9550, "127.0.0.1")

sock.on("connect", function(){
    console.log("on connect")
    
    sock.write("zha.daolong");
    sock.write("zha.daolong"); 
    
    sock.on("data", function(data){
            console.log("recv: "+data);
        })
})









